Commit remaining piece of 'name magellan tracks after filename' change.
authorrobertl <robertl>
Sat, 1 Jul 2006 19:40:02 +0000 (19:40 +0000)
committerrobertl <robertl>
Sat, 1 Jul 2006 19:40:02 +0000 (19:40 +0000)
magproto.c

index 1c5e6a317108af2cbd80f7f0c2b19eba19a116ac..3cfdb0574647010ece15078df78fd841d1b2c9e1 100644 (file)
@@ -825,6 +825,17 @@ mag_rd_init_common(const char *portname)
 
        QUEUE_INIT(&rte_wpt_tmp);
 
+       /* find the location of the tail of the path name,
+        * make a copy of it, then lop off the file extension
+        */
+
+       curfname = strrchr(portname, '/');
+       if (curfname) {
+               curfname++;  /* skip over path delimiter */
+       } 
+       
+       
+
        return;
 }